﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<PhotoGalleryEnteties.Album>" %>

  <div class="album">
                <div class ="AlbumIcon"></div>
                <div class="ItemTitle">
                     <%=Html.ActionLink(Model.Title   ,"Details",new{id=Model.AlbumId  },new{@class="reference TextClip"}   ) %> 
                </div>
                <%if ((bool)ViewData["IsEditor"]){%>
                  <%=Html.ActionLink("Delete", "Delete", new {id = Model.AlbumId })%>   
                <%}%>

                <div class ="clear"></div>
                <%if (Model.Photos.Count( ) > 0 || Model.ChildAlbums .Count( )>0)
                  {%>
                  
                 <div id="itemContainer<%=Model.AlbumId %>" ></div><%
                  }%>
    </div>

